package com.woniuxy.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface UserDao1 {
    List<Map<String,String>> findAll();

    @Insert("insert into mall_user(account) values(#{account})")
    void insert(Map<String,String> user);

    @Select("select * from mall_user")
    List<Map<String,String>> findAll2();

    @Update("update mall_user set account=#{account} where id=#{id}")
    void updateOne(Map<Object,Object> objectObjectMap);
}
